package com.bmps.springcloud.insuredmicroservice.model.trail.request;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * @Author :  zlc
 * @Date : 2019/9/10 11:12
 **/
public class TrailProductsModel implements Serializable {
    
    private Integer prodCount;

    private List<TrailProductModel> product;

    public Integer getProdCount() {
        return prodCount;
    }

    public void setProdCount(Integer prodCount) {
        this.prodCount = prodCount;
    }

    public List<TrailProductModel> getProduct() {
        return product;
    }

    public void setProduct(List<TrailProductModel> product) {
        this.product = product;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {return true;}

        if (o == null || getClass() != o.getClass()) {return false;}

        TrailProductsModel that = (TrailProductsModel) o;

        return new EqualsBuilder()
                .append(prodCount, that.prodCount)
                .append(product, that.product)
                .isEquals();
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 37)
                .append(prodCount)
                .append(product)
                .toHashCode();
    }

    @Override
    public String toString() {
        return "TrailProductsModel{" +
                "prodCount=" + prodCount +
                ", product=" + product +
                '}';
    }
}
